
#define MAX_MSG_ISO		1536
#define FIELD_ASCII			0x01
#define FIELD_HEXA			0x02
#define LENTGH_HL			0x01
#define LENTGH_LH			0x02
#define LENTGH_BCD			0x03



typedef struct stIsoGen 
{   
    DL_ISO8583_HANDLER isoHandler;
    DL_ISO8583_MSG     isoMsg;
    unsigned char ucTPDU[5];
    unsigned char ucBuffer[MAX_MSG_ISO];	
	unsigned int  ucBufferlen;
	unsigned char ucLen;
 
}stIsoGen;

//stIsoGen staticIso;


void vdIsoInit( stIsoGen *staticIso);

void vdIsoDeInit( stIsoGen *staticIso);
int inIsFiled(int inNumberFiled, stIsoGen *staticIso);
unsigned int uinSetField(int inNumberFiled,unsigned char ucTypeValue, unsigned char * ucValue, unsigned int uiLen,stIsoGen *staticIso);
unsigned int uinGetField(int inNumberFiled,unsigned char ucTypeValue, unsigned char * ucValue, unsigned int * uiLen,stIsoGen *staticIso);
unsigned int uinSetPackISO( unsigned char * ucValue, unsigned int * uinLen , unsigned char ucLenType,unsigned char ucFlagstx ,stIsoGen * staticIso );

unsigned int uinSetUnPackISO( unsigned char * ucValue, unsigned int  uinLen ,stIsoGen * staticIso);

